package com.start_eternity.oasissafewalk.service;

import com.start_eternity.oasissafewalk.pojo.PageBean;
import com.start_eternity.oasissafewalk.pojo.Route;
import com.start_eternity.oasissafewalk.pojo.RouteStation;

import java.time.LocalDate;
import java.util.List;

public interface RouteService {

    PageBean page(Integer page, Integer pageSize, String routeName, Short routeStatus, LocalDate begin, LocalDate end);

    void add(Route route);

    void delete(Integer id);

    Route getById(Integer id);

    void update(Route route);

    Route getRouteWithStations(Integer routeId);

    void addRouteStation(RouteStation routeStation);

    void deleteRouteStation(Integer routeStationId);

    RouteStation getOneByRouteStationId(Integer routeStationId);

    void updateRouteStation(RouteStation routeStation);
}
